package so;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import javax.swing.JOptionPane;

import interfacedecomunicacao.ClientInterface;
import iu.TelaLogin;

@SuppressWarnings("serial")
public class Cliente extends UnicastRemoteObject implements ClientInterface {
	
	public Cliente() throws RemoteException {}

	public static void main(String[] args){
		iniciarCliente();
	}

	public static void iniciarCliente(){
		new TelaLogin().setVisible(true);
	}

	@Override
	public void notificaPorPopUp(String mensagem) throws RemoteException {
		JOptionPane.showMessageDialog(null, mensagem, "Alerta!", JOptionPane.INFORMATION_MESSAGE);
	}

}
